<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<%
	String url = (String)request.getAttribute("javax.servlet.forward.request_uri");
	String menu1="";
	String menu2="";
	String menu3="";
	String menu4="";
	String menu5="";
	String menu6="";
	String menu7="";
	String menu8="";
	String menu9="";
	if(url.indexOf("pere300Q")>-1){
		menu1="o";
	}else if(url.indexOf("pere200Q")>-1){
		menu2="o";
	}else if(url.indexOf("petc100Q")>-1){
		menu3="o";
	}else if(url.indexOf("pere500Q")>-1){
		menu4="o";
	}else if(url.indexOf("pere400Q")>-1){
		menu5="o";
	}else if(url.indexOf("pere700Q")>-1){
		menu6="o";
	}else if(url.indexOf("petc1001Q")>-1){
		menu7="o";
	}else if(url.indexOf("pere800Q")>-1){
		menu8="o";
	}else if(url.indexOf("pere1000Q")>-1){
		menu9="o";
	}
%>
<c:if test="${empty sessionScope['userInfo'] }">
<!-- 사용자 화면 -->
		<div id="header">
			<div id="header_img">
				<div>
					<a href="www.adrenalincamping.com" target="_blank"><img src="/camping/img/camping_logo.jpg"></a>
					<a href="#" onclick="mgrPop();"><img src="/camping/img/key.gif" class="fr"></a>
				</div>
				<div id="topMenuLogo">
					<div class="fr bold" style="font-size: 20px;vertical-align:middle; line-height:10px">
						<img alt="" src="/camping/img/campinglogo_t.gif" >${pensionInfo.p_nm }
					</div>
				</div>
			</div>
			
			<div id="topMenuList">
				<div class="fl">
					<img alt="" src="/camping/img/reservation_img.jpg" style="margin-bottom: 0px;">
				</div>
				<div class="fr topLeftMenu">
					<ul>
						<li><a href="./pere300Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약안내" src="/camping/img/menu_down_1<%=menu1 %>.jpg"> </a></li>
<c:if test="${'N'==pensionInfo.reservation_yn}">
<%-- 						<li><a href="#" onclick="alert('예약은 전화로만 가능합니다');" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약하기" src="/camping/img/menu_down_2<%=menu2 %>.jpg"></a></li> --%>
</c:if>
<c:if test="${'N'!=pensionInfo.reservation_yn}">
<%-- 						<li><a href="#" onclick="moveRe();" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약하기" src="/camping/img/menu_down_2<%=menu2 %>.jpg"></a></li> --%>
</c:if>
						<li><a href="./petc100Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약현황달력" src="/camping/img/menu_down_3<%=menu3 %>.jpg"></a></li>
						<li><a href="./pere500Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약확인/취소" src="/camping/img/menu_down_4<%=menu4 %>.jpg"></a></li>
					</ul>
				</div>
			</div>
			<div id="line"></div>
		</div>
</c:if>
<c:if test="${!empty sessionScope['userInfo'] }">
<!-- 관리자화면 -->

		<div id="header">
			<div id="header_img">
				<div>
					<a href="www.adrenalincamping.com" target="_blank"><img src="/camping/img/camping_logo.jpg"></a>
					<a href="./pere902Q.do?p_id=${param.p_id }" ><img src="/camping/img/key.gif" class="fr"></a>
				</div>
				<div id="topMenuLogo">
					<div class="fr bold" style="font-size: 20px;vertical-align:middle; line-height:10px">
						<img alt="" src="/camping/img/campinglogo_t.gif" >${pensionInfo.p_nm }
					</div>
					
				</div>
			</div>
			
			<div id="topMenuList">
				<div class="fl">
					<img alt="" src="/camping/img/reservation_img.jpg" style="margin-bottom: 0px;">
				</div>
				<div class="fr topLeftMenu">
					<ul>
<li><a href="./pere400Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="요금설정" src="/camping/img/admin_menu_down_1<%=menu5 %>.jpg"> </a></li>
<li><a href="./pere700Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약종합정보" src="/camping/img/admin_menu_down_2<%=menu6 %>.jpg"> </a></li>
<li><a href="./petc1001Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약현황" src="/camping/img/admin_menu_down_3<%=menu7 %>.jpg"> </a></li>

<%-- <li><a href="./petc1001Q.do?p_id=${param.p_id }" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');">ddd </a></li> --%>


<li><a href="#" onclick="moveRe3();" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="예약통계" src="/camping/img/admin_menu_down_4<%=menu8 %>.jpg"> </a></li>
<li><a href="#" onclick="moveRe2();" onMouseOut="changeImg(this,'');" onMouseOver="changeImg(this,'on');"><img alt="관리자예약" src="/camping/img/admin_menu_down_5<%=menu9 %>.jpg"> </a></li>
					</ul>
				</div>
			</div>
			<div id="line"></div>
		</div>
</c:if>

